package com.chenye.configuration;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Auther:chenye
 * @Data:2018/4/11
 * @Description:
 */
@EnableRetry//spring提供的重试机制
@SpringBootApplication
@EnableAsync//spring提供的异步方法调用
public class ConfigApplication {
    public static void main(String[] args){
        ConfigurableApplicationContext applicationContext = SpringApplication.run(ConfigApplication.class,args);
        TestService testService = applicationContext.getBean(TestService.class);
        System.out.println(testService.introduce());
    }
}
